package com.tdkj.action.backstage.risevalue;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

import com.tdkj.action.BaseAction;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.risevalue.IBeanPlateSMSUseInfoService;


public class PlateSMSUseInfoAction extends BaseAction {
    
	private IBeanPlateSMSUseInfoService plateSMSUseInfoService;
	
	private List<BeanUser> users ;
	
	
	public String execute() {
		Criteria criteria = plateSMSUseInfoService.getBaseDao().getSession()
		.createCriteria(BeanUser.class)
		.add(Restrictions.isNotEmpty("SMSUseInfos"));
		
		this.queryByPage(criteria, "plateQuotationUseInfoAction.action", 10);
		return "success";
	}


	/**
	 * @return the users
	 */
	public List<BeanUser> getUsers() {
		return users;
	}


	/**
	 * @param users the users to set
	 */
	public void setUsers(List<BeanUser> users) {
		this.users = users;
	}


	/**
	 * @param plateSMSUseInfoService the plateSMSUseInfoService to set
	 */
	@Resource
	public void setPlateSMSUseInfoService(
			IBeanPlateSMSUseInfoService plateSMSUseInfoService) {
		this.plateSMSUseInfoService = plateSMSUseInfoService;
	}


	
}
